package com.xjzp.business.db.hibernate.po.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the tb_fb_a table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="tb_fb_a"
 */

public abstract class BaseTbFbA  implements Serializable {

	public static String REF = "TbFbA";
	public static String PROP_FREQUENCY = "Frequency";
	public static String PROP_LOWER3 = "Lower3";
	public static String PROP_SUB2 = "Sub2";
	public static String PROP_SUBJECT_ID = "SubjectId";
	public static String PROP_UPPER4 = "Upper4";
	public static String PROP_UPPER2 = "Upper2";
	public static String PROP_ITEM_ID = "ItemId";
	public static String PROP_LOWER4 = "Lower4";
	public static String PROP_UPPER5 = "Upper5";
	public static String PROP_YEAR = "Year";
	public static String PROP_LOWER5 = "Lower5";
	public static String PROP_LOWER2 = "Lower2";
	public static String PROP_SUB1 = "Sub1";
	public static String PROP_LOWER1 = "Lower1";
	public static String PROP_UPPER1 = "Upper1";
	public static String PROP_UPPER3 = "Upper3";
	public static String PROP_ID = "Id";


	// constructors
	public BaseTbFbA () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseTbFbA (java.lang.Integer id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Integer id;

	// fields
	private java.lang.String year;
	private java.lang.Integer subjectId;
	private java.lang.Integer frequency;
	private java.lang.Integer itemId;
	private java.math.BigDecimal lower1;
	private java.math.BigDecimal upper1;
	private java.math.BigDecimal lower2;
	private java.math.BigDecimal upper2;
	private java.math.BigDecimal lower3;
	private java.math.BigDecimal upper3;
	private java.math.BigDecimal lower4;
	private java.math.BigDecimal upper4;
	private java.math.BigDecimal lower5;
	private java.math.BigDecimal upper5;
	private java.lang.Integer sub1;
	private java.lang.String sub2;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="increment"
     *  column="id"
     */
	public java.lang.Integer getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.Integer id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: year
	 */
	public java.lang.String getYear () {
		return year;
	}

	/**
	 * Set the value related to the column: year
	 * @param year the year value
	 */
	public void setYear (java.lang.String year) {
		this.year = year;
	}



	/**
	 * Return the value associated with the column: subject_id
	 */
	public java.lang.Integer getSubjectId () {
		return subjectId;
	}

	/**
	 * Set the value related to the column: subject_id
	 * @param subjectId the subject_id value
	 */
	public void setSubjectId (java.lang.Integer subjectId) {
		this.subjectId = subjectId;
	}



	/**
	 * Return the value associated with the column: frequency
	 */
	public java.lang.Integer getFrequency () {
		return frequency;
	}

	/**
	 * Set the value related to the column: frequency
	 * @param frequency the frequency value
	 */
	public void setFrequency (java.lang.Integer frequency) {
		this.frequency = frequency;
	}



	/**
	 * Return the value associated with the column: item_id
	 */
	public java.lang.Integer getItemId () {
		return itemId;
	}

	/**
	 * Set the value related to the column: item_id
	 * @param itemId the item_id value
	 */
	public void setItemId (java.lang.Integer itemId) {
		this.itemId = itemId;
	}



	/**
	 * Return the value associated with the column: lower1
	 */
	public java.math.BigDecimal getLower1 () {
		return lower1;
	}

	/**
	 * Set the value related to the column: lower1
	 * @param lower1 the lower1 value
	 */
	public void setLower1 (java.math.BigDecimal lower1) {
		this.lower1 = lower1;
	}



	/**
	 * Return the value associated with the column: upper1
	 */
	public java.math.BigDecimal getUpper1 () {
		return upper1;
	}

	/**
	 * Set the value related to the column: upper1
	 * @param upper1 the upper1 value
	 */
	public void setUpper1 (java.math.BigDecimal upper1) {
		this.upper1 = upper1;
	}



	/**
	 * Return the value associated with the column: lower2
	 */
	public java.math.BigDecimal getLower2 () {
		return lower2;
	}

	/**
	 * Set the value related to the column: lower2
	 * @param lower2 the lower2 value
	 */
	public void setLower2 (java.math.BigDecimal lower2) {
		this.lower2 = lower2;
	}



	/**
	 * Return the value associated with the column: upper2
	 */
	public java.math.BigDecimal getUpper2 () {
		return upper2;
	}

	/**
	 * Set the value related to the column: upper2
	 * @param upper2 the upper2 value
	 */
	public void setUpper2 (java.math.BigDecimal upper2) {
		this.upper2 = upper2;
	}



	/**
	 * Return the value associated with the column: lower3
	 */
	public java.math.BigDecimal getLower3 () {
		return lower3;
	}

	/**
	 * Set the value related to the column: lower3
	 * @param lower3 the lower3 value
	 */
	public void setLower3 (java.math.BigDecimal lower3) {
		this.lower3 = lower3;
	}



	/**
	 * Return the value associated with the column: upper3
	 */
	public java.math.BigDecimal getUpper3 () {
		return upper3;
	}

	/**
	 * Set the value related to the column: upper3
	 * @param upper3 the upper3 value
	 */
	public void setUpper3 (java.math.BigDecimal upper3) {
		this.upper3 = upper3;
	}



	/**
	 * Return the value associated with the column: lower4
	 */
	public java.math.BigDecimal getLower4 () {
		return lower4;
	}

	/**
	 * Set the value related to the column: lower4
	 * @param lower4 the lower4 value
	 */
	public void setLower4 (java.math.BigDecimal lower4) {
		this.lower4 = lower4;
	}



	/**
	 * Return the value associated with the column: upper4
	 */
	public java.math.BigDecimal getUpper4 () {
		return upper4;
	}

	/**
	 * Set the value related to the column: upper4
	 * @param upper4 the upper4 value
	 */
	public void setUpper4 (java.math.BigDecimal upper4) {
		this.upper4 = upper4;
	}



	/**
	 * Return the value associated with the column: lower5
	 */
	public java.math.BigDecimal getLower5 () {
		return lower5;
	}

	/**
	 * Set the value related to the column: lower5
	 * @param lower5 the lower5 value
	 */
	public void setLower5 (java.math.BigDecimal lower5) {
		this.lower5 = lower5;
	}



	/**
	 * Return the value associated with the column: upper5
	 */
	public java.math.BigDecimal getUpper5 () {
		return upper5;
	}

	/**
	 * Set the value related to the column: upper5
	 * @param upper5 the upper5 value
	 */
	public void setUpper5 (java.math.BigDecimal upper5) {
		this.upper5 = upper5;
	}



	/**
	 * Return the value associated with the column: sub_1
	 */
	public java.lang.Integer getSub1 () {
		return sub1;
	}

	/**
	 * Set the value related to the column: sub_1
	 * @param sub1 the sub_1 value
	 */
	public void setSub1 (java.lang.Integer sub1) {
		this.sub1 = sub1;
	}



	/**
	 * Return the value associated with the column: sub_2
	 */
	public java.lang.String getSub2 () {
		return sub2;
	}

	/**
	 * Set the value related to the column: sub_2
	 * @param sub2 the sub_2 value
	 */
	public void setSub2 (java.lang.String sub2) {
		this.sub2 = sub2;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.xjzp.business.db.hibernate.po.TbFbA)) return false;
		else {
			com.xjzp.business.db.hibernate.po.TbFbA tbFbA = (com.xjzp.business.db.hibernate.po.TbFbA) obj;
			if (null == this.getId() || null == tbFbA.getId()) return false;
			else return (this.getId().equals(tbFbA.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}